<?php

foreach ($_GET as $key => $value) {
	logger("Key: {$key}; Value: {$value}");
}
$postStr = $GLOBALS["HTTP_RAW_POST_DATA"];
logger($postStr);
if (isset($_GET)) {
	echo "success";
}
function logger($log_content)
{
	$max_size = 100000;
	$log_filename = "log.xml";
	if (file_exists($log_filename) and abs(filesize($log_filename)) > $max_size) {
		unlink($log_filename);
	}
	file_put_contents($log_filename, date("H:i:s") . " " . $log_content . "\r\n", FILE_APPEND);
}